#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int main()
{
	printf("YYYYMM:");
	int y, b;
	scanf("%4d%2d", &y, &b);
	if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0)
		printf("a leap\n");
	else printf("not a leap\n");
	if (b >= 3 && b <= 5)
		printf("spring\n");
	if (b >= 6 && b <= 8)
		printf("summer\n");
	if (b >= 9 && b <= 11)
		printf("autumn\n");
	if (b == 12 || b <= 2)
		printf("winter\n");
	if (b == 1 || b == 3 || b == 5 || b == 7 || b == 8 || b == 10 || b == 12)
		printf("31\n");
	if (b == 4 || b == 6 || b == 9 || b == 11)
		printf("30\n");
	if (b == 2)
	{
		if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0)
			printf("29\n");
		else printf("28\n");
	}
	return 0;
}